namespace Link
{
    /// <summary>
    /// 单链表节点类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Node<T>
    {
        /// <summary>
        /// 数据域
        /// </summary>
        /// <value></value>
        public T Data { get; set; }
        public Node<T> Next { get; set; }
        public Node(T value, Node<T> p)
        {
            Data = value;
            Next = p;
        }
        public Node(T value)
        {
            Data = value;
            Next = null;
        }
        public Node(Node<T> p)
        {
            Next = p;
        }
        public Node()
        {
            Data = default(T);
            Next = null;
        }
    }
}
